<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <title>后台管理系统</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
    <link href="/static/admin/css/main.css" rel="stylesheet" type="text/css" />
    <link href="/static/admin/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
    <link href="/static/admin/css/bootstrap-responsive.min.css" rel="stylesheet" type="text/css" />
    <script src="/static/admin/js/jquery-1.8.1.min.js"></script>
    <script src="/static/admin/js/bootstrap.min.js"></script>
</head>

<body>
    <!-- 上 -->
    <div class="navbar">
        <div class="navbar-inner">
            <div class="container-fluid">
                <ul class="nav pull-right">
                    <li id="fat-menu" class="dropdown">
                        <a href="#" id="drop3" role="button" class="dropdown-toggle" data-toggle="dropdown">
                            <i class="icon-user icon-white"></i> {:session('userinfo.username')}
                            <i class="icon-caret-down"></i>
                        </a>
                        <ul class="dropdown-menu">
                            <li><a tabindex="-1" href="{:url('admin/manager/modifyPassword',['id'=>session('userinfo.id')])}">修改密码</a></li>
                            <li class="divider"></li>
                            <li><a tabindex="-1" href="{:url('admin/login/logout')}">安全退出</a></li>
                        </ul>
                    </li>
                </ul>
                <a class="brand" href="{:url('admin/goods/index')}"><span class="first">后台管理系统</span></a>
                <ul class="nav">
                    <li class="active"><a href="javascript:void(0);">首页</a></li>
                    <li><a href="javascript:void(0);">系统管理</a></li>
                    <li><a href="{:url('admin/auth/index')}">权限管理</a></li>
                </ul>
            </div>
        </div>
    </div>
    <!-- 左 -->
    <div class="sidebar-nav">
        <!-- 注意在同一页面上的命名冲突 -->
        {foreach $top_nav as $k => $top_vv}
        <a href="#error-menu {$k}" class="nav-header collapsed" data-toggle="collapse"><i class="icon-exclamation-sign"></i>{$top_vv.auth_name}</a>
        <ul id="error-menu {$k}" class="nav nav-list collapse in">
            {foreach $second_nav as $second_vv}
            {if $second_vv.pid == $top_vv.id}
            <li><a href="{:url($second_vv['auth_c'].'/'.$second_vv['auth_a'])}">{$second_vv.auth_name}</a></li>
            {/if}
            {/foreach}
        </ul>
        {/foreach}
    </div>


    {__CONTENT__}

    <!-- footer -->
    <footer>
        <hr>
        <p>© 2017 <a href="javascript:void(0);" target="_blank">ADMIN</a></p>
    </footer>
    </div>
</body>

</html>